package cn.com.ctcloud.microservice.dynamicds;

/**
 * Title: 分布式动态数据源路由
 * <p>
 * Description: organCode(机构码)的ThreadLocal全局静态变量
 * <p>
 * Copyright: Copyright (c) 2008
 * <p>
 * Company: Liaoning Open Data Communication Co.,Ltd.
 * 
 * @author lihui
 * @version 1.0.0
 */
public class OrganCodeHolder {
	static final ThreadLocal<String> holder = new ThreadLocal<String>();

	public static void putOrganCode(String organCode) {
		holder.set(organCode);
	}

	public static void remove() {
		holder.remove();
	}

	public static String getOrganCode() {
		return holder.get();
	}
}
